close all; clear all;

%Temporarily add to path (remember to call path at the end of script to
%restore)
p = path;
path(p,'C:\Users\mypc\Documents\MATLAB\Option Object Oriented Framework')

% SEQUENCE EXCHANGE BOARD TIME PAPER BID BID-DEPTH BID-DEPTH-TOTAL BID-NUMBER OFFER OFFER-DEPTH
% OFFER-DEPTH-TOTAL OFFER-NUMBER OPEN HIGH LOW LAST CHANGE CHANGE-PERCENT VOLUME VALUE TRADES STATUS QUOTE-ID
%Some tests for parsing html strings from primetrader
yieldCurve = NIBORyieldCurve();
path(p)

t = timer;

%Construct Map container of open interests
openInterestMap = constructOpenInterestMap( );

% Assign values to timer object properties using the set function.

set(t,'ExecutionMode','fixedRate','BusyMode','drop','Period',3);

% Assign a value to the timer object TimerFcn property using dot notation.

% t.TimerFcn = @(x,y) disp(urlread('http://localhost:8678/quotes/OBX1D400.OMFE'));
% t.TimerFcn = @(x,y) disp(urlread('http://localhost:8678/quotes/wlist=obxoptions'));
t.TimerFcn = { @timerPlotIvols, yieldCurve, openInterestMap };

% Start the timer object

h = figure(); %Create figure to display SABR etc

start(t)


% Stop the timer object.
% Delete timer objects after you are done using them.
stop(t)
delete(t)

